package Day2025_02_21;

/**
 * 继承 Thread 类
 */

public class Demo01_Thread extends Thread {
    public static void main(String[] args) {
        myThread01 myThread01 = new myThread01();
        myThread01.start();
    }
}

class myThread01 extends Thread {
    @Override
    public void run() {
        while (true) {
            System.out.println("hello my thread");
        }
    }
}
